@import "./common.css";
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}

header {
    .add-wechat {
        height: 43px;
        display: flex;
        .left {
            width: 60%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: rgb(34, 34, 34);
        }
        .right {
            width: 40%;
            background: #1aad17;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;

            img {
                margin-right: 5px;
                width: 24px;
            }
        }
    }
}

main {
    section {
        &.form {
            padding-top: 15px;
            width: 100%;
            height: 100%;
            background-size: 10%;

            form {
                width: 100%;
                height: 100%;
                padding-bottom: 10px;

                .font2 {
                    height: 50px;
                    color: rgb(208, 2, 27);
                    font-size: 18px;

                    display: flex;
                    align-items: center;
                    justify-content: center;

                    img {
                        height: 22px;
                    }

                    span {
                        padding: 1px;
                        background: #f33531;
                        color: white;
                        font-weight: bold;
                        display: inline-block;
                        margin: 0px 5px;
                        border-radius: 6px;
                    }
                }
                .form-box {
                    margin: 10px 0px;
                    padding: 0px 10px;
                    p {
                        label {
                            display: inline-block;
                            text-align: center;
                            color: #666;
                            font-size: 14px;
                            width: 80px;
                            i {
                                color: red;
                            }
                        }
                        input[type="text"] {
                            border: 1px solid #eee;
                            outline: none;
                            border-radius: 3px;
                            font-size: 14px;
                            box-sizing: border-box;
                            height: 38px;
                            margin: 0;
                            padding-left: 8px;
                            padding-right: 36px;
                            border: 1px solid #f1f1f1;
                            line-height: 20px;
                            margin-bottom: 10px;
                            width: calc(100% - 100px);
                        }
                    }

                    .tip-info {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        span:nth-of-type(1) {
                            margin-right: 15px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border: 1px solid #cecece;
                            width: 13px;
                            height: 13px;
                            border-radius: 50px;
                        }
                        span:nth-of-type(2){
                                color: #d80233;
                        }
                        font-size: 12px;
                        text-align: center;
                        color: #66667f;
                        
                    }

                    .submit-bg {
                        background-image: -webkit-linear-gradient(45deg, rgb(245, 105, 35), rgb(255, 11, 11));
                        border-radius: 3px;
                        position: relative;
                        width: 80%;
                        margin: auto;
                        margin-top: 10px !important;
                        // 动画

                        animation-name: mybuttonchange; /*动画的名字*/
                        animation-duration: 1000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                        animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/
                        animation-direction: alternate; /*定义是否应该轮流反向播放动画，这里是动画轮流播放*/

                        @keyframes mybuttonchange {
                            /*mychange是动画的名字上面有用到*/
                            0% {
                                transform: scale(1);
                            }
                            100% {
                                transform: scale(1.05);
                            }
                        }

                        img {
                            position: absolute;
                            left: 0;
                            // 动画
                            animation-name: mychange2; /*动画的名字*/
                            animation-duration: 2000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                            animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/

                            @keyframes mychange2 {
                                0% {
                                    left: 0%;
                                }
                                99% {
                                    left: 100%;
                                }

                                100% {
                                    left: 0;
                                }
                            }
                        }
                        input[type="submit"] {
                            outline: none;
                            font-size: 16px;
                            border-radius: 3px;

                            box-sizing: border-box;
                            width: 100%;
                            height: 38px;
                            margin: 0;
                            line-height: 20px;
                            color: white;
                            text-align: center;
                            background: none;
                        }
                    }
                }
            }
        }

        &.common-block {
            img {
                width: 100%;
            }

            > div {
                display: flex;
                .left {
                    padding: 15px 0px;
                    width: 50%;
                    text-align: center;
                    background: #f33531;
                    a {
                        color: white;
                    }
                }
                .right {
                    padding: 15px 0px;
                    width: 50%;
                    background: #f79606;
                    text-align: center;
                    color: white;
                }
            }
        }
    }
}

footer {
    background: #fafafa;
    color: #fafafa;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 50px;
    p {
        text-align: center;
        font-size: 15px;
        color: #9999;
    }
    .call-me {
        background: white;
        height: 50px;
        position: fixed;
        z-index: 3;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 5px 0px;
        display: flex;
        .left {
            background: #f13f40;
            border-radius: 25px;
            margin: 0px 10px;
            width: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .right {
            border-radius: 25px;
            margin: 0px 10px;
            background: #f13f40;
            width: 50%;
        }
        a {
            color: #fafafa;

            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            img {
            }
        }
    }
}

.floating-window {
    position: fixed;
    right: 20px;
    bottom: 20%;

    .tel {
        position: absolute;
        left: 5px;
        top: 4px;
        width: 30px;

        animation: shake 4s linear infinite;
        @keyframes shake {
            0% {
                transform: rotate(0) scale(1);
            }
            4% {
                transform: rotate(20deg) scale(1.2);
            }
            8% {
                transform: rotate(0) scale(1);
            }
            13% {
                transform: rotate(20deg) scale(1.2);
            }
            17% {
                transform: rotate(0) scale(1);
            }
            33% {
                transform: rotate(0) scale(1);
            }
            38% {
                transform: rotate(20deg) scale(1.2);
            }
            42% {
                transform: rotate(0) scale(1);
            }
            46% {
                transform: rotate(20deg) scale(1.2);
            }
            50% {
                transform: rotate(0) scale(1);
            }
            100% {
                transform: rotate(0) scale(1);
            }
        }
    }

    span {
        position: absolute;
        left: 16px;
        bottom: 5px;
        font-size: 13px;
        color: #fff;
    }
}

// 底部模态框显示

#showModal {
    box-sizing: border-box;
    padding-top: 10px;
    section.form {
        width: 100%;
        height: 100%;
        background-size: 10%;

        form {
            width: 100%;
            height: 100%;
            padding-bottom: 10px;

            .font2 {
                height: 50px;
                color: rgb(208, 2, 27);
                font-size: 18px;

                display: flex;
                align-items: center;
                justify-content: center;

                img {
                    height: 22px;
                }

                span {
                    padding: 1px;
                    background: #f33531;
                    color: white;
                    font-weight: bold;
                    display: inline-block;
                    margin: 0px 5px;
                    border-radius: 6px;
                }
            }
            .form-box {
                margin: 10px 0px;
                padding: 0px 20px;
                p {
                    label {
                        display: inline-block;
                        text-align: center;
                        color: #666;
                        font-size: 14px;
                        width: 80px;
                        i {
                            color: red;
                        }
                    }
                    input[type="text"] {
                        border: 1px solid #eee;
                        outline: none;
                        border-radius: 3px;
                        font-size: 14px;
                        box-sizing: border-box;
                        height: 38px;
                        margin: 0;
                        padding-left: 8px;
                        padding-right: 36px;
                        border: 1px solid #f1f1f1;
                        line-height: 20px;
                        margin-bottom: 10px;
                        width: 100%;
                    }

                    input::-webkit-input-placeholder {
                        color: #b0b0b0;
                    }
                }

                .tip-info {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    span:nth-of-type(1) {
                        margin-right: 15px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border: 1px solid #cecece;
                        width: 13px;
                        height: 13px;
                        border-radius: 50px;
                    }
                    span:nth-of-type(2){
                            color: #d80233;
                    }
                    font-size: 12px;
                    text-align: center;
                    color: #66667f;
                   
                }

                .submit-bg {
                    background-image: -webkit-linear-gradient(45deg, rgb(245, 105, 35), rgb(255, 11, 11));
                    border-radius: 33px;
                    position: relative;
                    width: 90%;
                    margin: auto;
                    margin-top: 10px !important;
                    // 动画

                    animation-name: mybuttonchange; /*动画的名字*/
                    animation-duration: 1000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                    animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/
                    animation-direction: alternate; /*定义是否应该轮流反向播放动画，这里是动画轮流播放*/

                    @keyframes mybuttonchange {
                        /*mychange是动画的名字上面有用到*/
                        0% {
                            transform: scale(1);
                        }
                        100% {
                            transform: scale(1.05);
                        }
                    }

                    img {
                        position: absolute;
                        left: 0;
                        // 动画
                        animation-name: mychange2; /*动画的名字*/
                        animation-duration: 2000ms; /*定义动画完成一个周期所需要的时间，以秒或毫秒计*/
                        animation-iteration-count: infinite; /*定义动画的播放次数，这里是无限播放*/

                        @keyframes mychange2 {
                            0% {
                                left: 0%;
                            }
                            99% {
                                left: 100%;
                            }

                            100% {
                                left: 0;
                            }
                        }
                    }
                    input[type="submit"] {
                        outline: none;
                        font-size: 16px;
                        border-radius: 3px;

                        box-sizing: border-box;
                        width: 100%;
                        height: 38px;
                        margin: 0;
                        line-height: 20px;
                        color: white;
                        text-align: center;
                        background: none;
                    }
                }
            }
        }
    }
}
